package com.yc.sole.framework.log;

import org.slf4j.MDC;

/**
 * @author yizuomin
 * @date 2024/1/12 14:19
 **/
public class TraceIdUtils {

    public static final String TRACE_ID = "traceId";

    public static void setTraceId(String traceId) {
        MDC.put(TRACE_ID, traceId);
    }

    public static void clearTraceId() {
        MDC.remove(TRACE_ID);
    }
}
